package reflect;

import reflect.ann.DemoAnnotation;
import reflect.ann.TestAnnotation;

//@DemoAnnotation
@TestAnnotation
public class Person {
    private String name;
    private int age;

    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
    @DemoAnnotation
    public void demo(){
        System.out.println("Person.demo");
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
